package com.tengju.support.domain.model.bizlog;

import lombok.Data;

import java.util.Map;

/**
 * @Author: 李大仙
 * @Date: 2021/3/10 10:45 上午
 */
@Data
public class BizLogContent {

    /**
     * 请求
     */
    private Map<String, Object> request;
    /**
     * 响应
     */
    private Object response;
    /**
     * 响应耗时 ms
     */
    private long time;

    private BizLogContent(){}

    private BizLogContent(Map<String, Object> request, Object response, long time){
        this.request = request;
        this.response = response;
        this.time = time;
    }

    public static BizLogContent of(Map<String, Object> request, Object response, long time){
        return new BizLogContent(request, response, time);
    }
}
